import App from './App'
import glob from './static/config.js'
// #ifndef VUE3
import Vue from 'vue'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
// uni.$u.config.unit = 'rpx'
Vue.prototype.glob = glob
uni.$u.http.setConfig((config) => {
    /* config 为默认全局配置*/
    // config.baseURL = `https://www.fastmock.site/mock/f0a5289c30940e412732e6461a04c5f0/xibai_shop`; /* 根域名 */
    config.baseURL = glob.baseUrl; /* 根域名 */
    return config
})
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif